﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-20 11:46:45
// 负责人：Sushee
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{

    /// <summary>
    /// 扩展
    /// </summary>
    public partial class CityOpenOperate
    {
        /// <summary>
    	/// 根据断言条件获取单个
    	/// </summary>
        public static CityOpenInfo QuerySingle(Expression<Func<CityOpenInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }
        /// <summary>
    	/// 根据断言条件获获取列表
    	/// </summary>
        public static IList<CityOpenInfo> QueryList(Expression<Func<CityOpenInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 查询分页列表
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        public static IList<CityOpenInfo> GetListByProviceId(int provinceId)
        {
            return dal.GetListByProviceId(provinceId);
        }

        /// <summary>
        /// 获取所有的开放城市
        /// </summary>
        /// <returns></returns>
        public static DataTable GetAllOpenCity()
        {
            return dal.GetAllOpenCity();
        }
    }
}